package main

import "fmt"

var arr [3]int
var arr2 = [4]int{1,2,3,4}
func main() {
	fmt.Println(arr)

	a:=[4]float64{1.1,23,3,4.5}
	fmt.Println(a)

	b:=[...]int{2,3,4}
	fmt.Println(b)

	for i:=0;i<len(a) ;i++  {
		fmt.Print(a[i],"\t")
	}

	for _,value:=range b {
		fmt.Print(value,"\t")
	}

/*	if arr == nil{
		fmt.Println("arr is nil")
	}*/
	fmt.Println("遍历未初始化的数组arr:")
	for _,value:=range a {
		fmt.Print(value,"\t")
	}
}
